#pragma strict

var pos1:Vector3 = Vector3(1,0,0);
var pos2:Vector3 = Vector3(0,0.5,0);

var tran1:Matrix4x4;
var tran2:Matrix4x4;

var isSend:boolean;

function Start () {
	tran1 = Matrix4x4.identity;
	tran2 = Matrix4x4.identity;
	
	tran1[12] = pos1.x;
	tran1[13] = pos1.y;
	tran1[14] = pos1.z;
	
	tran2[12] = pos2.x;
	tran2[13] = pos2.y;
	tran2[14] = pos2.z;


}

function Update () {
	if(isSend){
		isSend = false;
		Start();

	}
	renderer.material.SetMatrix("_Tran1",tran1);
	renderer.material.SetMatrix("_Tran2",tran2);
}